<%@ Page Language="C#" Inherits="Castle.MonoRail.Views.AspView.ViewAtDesignTime<ICommentView>" %>
<%@ Import namespace="KenEgozi.Com.Weblog.Interfaces"%>

<div class="Comment">
	<h6>
		<%if (string.IsNullOrEmpty(view.Comment.Homepage)) {%>
		<span><%=view.Comment.Name%></span>
		<%} else { %>
		<% string homepage = view.Comment.Homepage;
		   if (homepage.StartsWith("http://") == false)
		       homepage = "http://" + homepage; %>
		<a href="<%=homepage %>"><%=view.Comment.Name%></a>
		<%}%>
		 Said:
	</h6>
	<div class="CommentContent">
		<%=view.Comment.Content%>	
	</div>
	<h6><%=view.Comment.Lifecycle.CreationDate.ToString("hh:mmtt  dddd, MMM dd, yyyy")%></h6>
</div>